package com.bxg.listDemo;

import java.io.*;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(new FileInputStream("D:\\a.txt"));
        OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("jh\\b.txt"),"GBK");
        int c;
        while ((c = isr.read()) != -1){
            osw.write(c);
        }
        isr.close();
        osw.close();
    }
}
